package qdu.rg012.ch1_intent_adv;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;

import androidx.annotation.Nullable;

public class Act_receive extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.ly_act_recv);

        Intent it = this.getIntent();
        //Log.i("mytag" , String.valueOf(it.getIntExtra("msg1", -1)));
        //Log.i("mytag",it.getStringExtra("msg2"));
        Log.i("mytag", String.valueOf(it.getExtras().getInt("msg3")));
        Log.i("mytag",it.getExtras().getString("msg4"));
        setResult(0);
    }
}
